  We consider N=1 compactifications of the type-IIA theory on the T6/(Z2xZ2)
orbifold and O6 orientifold, in the presence of D6-branes and general NSNS, RR
and Scherk-Schwarz geometrical fluxes. Introducing a suitable dual formulation
of the theory, we derive and solve the Bianchi identities, and show how certain
combinations of fluxes can relax the constraints on D6-brane configurations
coming from the cancellation of RR tadpoles. We then compute, via generalized
dimensional reduction, the N=1, D=4 effective potential for the seven main
moduli, and comment on the relation with truncated N=4 gaugings. As a
byproduct, we obtain a general geometrical expression for the superpotential.
We finally identify a family of fluxes, compatible with all Bianchi identities,
that perturbatively stabilize all seven moduli in supersymmetric AdS4.
